from django.db import models
from frame_server.model import BaseModel

'''参数'''
class Param(BaseModel):
    paramName = models.CharField(max_length=255, db_column="param_name", verbose_name="参数名")
    paramKey = models.CharField(unique=True, max_length=255, db_column="param_key", verbose_name="参数键")
    paramValue = models.CharField(max_length=255, db_column="param_value", verbose_name="参数值")
    remark = models.CharField(max_length=255,null=True,blank=True, verbose_name="备注")
    
    class Meta:
        db_table = 'system_param'
        ordering = ['-pk']
        indexes = [
            models.Index(fields=['paramKey']),
        ]

    def __str__(self):
        return self.paramName
